<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<%@include file="components/common/head.ini"%>
		<!--[if IE 6]> 
			<script src="../zfstyle_v4/js/ie6comm.js"></script> 
			<script>DD_belatedPNG.fix('img');</script> 
        <![endif]-->
	</head>
	<body class="login_bg">
		<logic:notEmpty name="message">
			<input type="hidden" id="message" name="message"
				value="<bean:write name='message'/>" />
		</logic:notEmpty>
		<logic:empty name="message">
			<input type="hidden" id="message" name="message" value="0" />
		</logic:empty>
		<div class="login_main">
			<div class="login_logo">
				<h2>
					<img src="../zfstyle_v4/logo/logo_school.png" />
				</h2>
				<h3>
					<img src="../zfstyle_v4/logo/logo_zc.png" />
				</h3>
			</div>
			<div class="login_left">
				<img class="login_pic" src="../zfstyle_v4/logo/login_pic.png" />
			</div>
			<form action="login" method="post">
				<div class="login_right">
					<div class="login">
						<div class="user" style="width: 300px;">
							<label for="">
								用户名：
							</label>
							<input class="text_nor" type="text" id="dlm" name="dlm"
								onblur="cutlogin();" />
							<span id="loginnull" style="display: none; color: red"></span>
						</div>
						<div class="passw" style="width: 300px">
							<label for="">
								密 &nbsp;&nbsp;码：
							</label>
							<input class="text_nor" type="password" id="mm" name="mm"
								onblur="cutpasswd();" />
							<span id="passwdnull" style="display: none; color: red"></span>
						</div>
						<div class="btn">
							<button class="btn_dl" type="submit"
								onclick="return CheckForm();" value=" "></button>
							<button class="btn_cz" type="reset" value=" "></button>
						</div>
					</div>
				</div>
			</form>
			<div class="login_copyright">
				<span>&copy; &nbsp;<a href="http://www.yzczj.com">一周成长记股份有限公司</a> <span>版权所有</span>&nbsp;&nbsp;联系电话：0571-517517</span>
			</div>
		</div>
		<script type="text/javascript">
			jQuery(document).ready( function() {
			 	jQuery("#loginnull").html("用户名不能为空!");
				jQuery("#passwdnull").html("密码不能为空!");
			})
			
			if(jQuery("#message").val() == "-1"){
				alert("用户名或密码不正确!",false);
			}
			  
			function CheckForm(){  
			    if(jQuery("#dlm").val() == ""){
			    	jQuery("#loginnull").css("display","");
			    	isSelectFocus(jQuery("#dlm"));
			    	return false;
			    }	  
			    if(jQuery("#mm").val() == ""){ 
			    	jQuery("#passwdnull").css("display","");
			    	isSelectFocus(jQuery("#mm"));
			    	return false;
			    }
			    return true;
		    }
		    
		    function cutlogin(){
		    	if(jQuery("#dlm").val() == ""){
		    	 	jQuery("#loginnull").css("display","");
		    	  }else{
		    	   	jQuery("#loginnull").css('display',"none");
		    	  }
		    }
		    function cutpasswd(){
		    	if(jQuery("#mm").val() == ""){
			 	    jQuery("#passwdnull").css("display","");
		    	  }else{
		    	  	jQuery("#passwdnull").css("display","none");
		    	  }
		    }
		    
		  function aa() {
		//tipsWindown("弹出层标题","id:testID","340","120","true","","true","id");
		//tipsWindown("w","id:text","800","500","true","","true","id","http://localhost:8080/zfstyle_v4/demo/demo_08.html","500","yes");
		//   alert("保存成功!",true);
		//jQuery("#mm")[0].focus();
		//		jQuery("#mm")[0].select();
		//showConfirmDivLayer('确定注销吗？',{okFun:function(){logOut();}});
		}
		</script>
	</body>
</html>

